home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
gear
/
paint
/
palette3.txt
< prev
next >
Wrap
Text File
|
1993-11-30
|
1KB
|
27 lines
'ON ERROR GOTO *HAZIME
MOUSE 4,527,306,639,370
VIEW ,0
G=255
R=255
B=255
PALETTE 1,[G,0,0]
PALETTE 2,[0,R,0]
PALETTE 3,[0,0,B]
PALETTE 4,[G,R,B]
LINE (547,308)-(619,327),PSET,%1,BF,%1
LINE (547,328)-(619,347),PSET,%2,BF,%2
LINE (547,348)-(619,367),PSET,%3,BF,%3
LINE (527,368)-(639,387),PSET,%4,BF,%4
WHILE MOUSE(2,1)=0
IF MOUSE(2,0)=-1 GOSUB *TOBI
WEND
END
*TOBI
IF MOUSE(4,0)<546 AND MOUSE(5,0)<327 THEN G=G-1:IF G<0 THEN G=1:PALETTE 1,[G,0,0]:PALETTE 4,[G,R,B]:RETURN
IF MOUSE(4,0)<546 AND MOUSE(5,0)<347 THEN R=R-1:IF R<0 THEN R=1:PALETTE 2,[0,R,0]:PALETTE 4,[G,R,B]:RETURN
IF MOUSE(4,0)<546 AND MOUSE(5,0)<367 THEN B=B-1:IF B<0 THEN B=1:PALETTE 3,[0,0,B]:PALETTE 4,[G,R,B]:RETURN
IF MOUSE(4,0)>620 AND MOUSE(5,0)<327 THEN G=G+1:IF G>255 THEN G=255:PALETTE 1,[G,0,0]:PALETTE 4,[G,R,B]:RETURN
IF MOUSE(4,0)>620 AND MOUSE(5,0)<347 THEN R=R+1:IF R>255 THEN R=255:PALETTE 2,[0,R,0]:PALETTE 4,[G,R,B]:RETURN
IF MOUSE(4,0)>620 AND MOUSE(5,0)<367 THEN B=B+1:IF B>255 THEN B=255:PALETTE 3,[0,0,B]:PALETTE 4,[G,R,B]:RETURN
RETURN